package com.shzu.jwc.ty.bean;

import java.util.ArrayList;
import java.util.List;

public class SelectProblemExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SelectProblemExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSelectProblemIdIsNull() {
            addCriterion("select_problem_id is null");
            return (Criteria) this;
        }

        public Criteria andSelectProblemIdIsNotNull() {
            addCriterion("select_problem_id is not null");
            return (Criteria) this;
        }

        public Criteria andSelectProblemIdEqualTo(Integer value) {
            addCriterion("select_problem_id =", value, "selectProblemId");
            return (Criteria) this;
        }

        public Criteria andSelectProblemIdNotEqualTo(Integer value) {
            addCriterion("select_problem_id <>", value, "selectProblemId");
            return (Criteria) this;
        }

        public Criteria andSelectProblemIdGreaterThan(Integer value) {
            addCriterion("select_problem_id >", value, "selectProblemId");
            return (Criteria) this;
        }

        public Criteria andSelectProblemIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("select_problem_id >=", value, "selectProblemId");
            return (Criteria) this;
        }

        public Criteria andSelectProblemIdLessThan(Integer value) {
            addCriterion("select_problem_id <", value, "selectProblemId");
            return (Criteria) this;
        }

        public Criteria andSelectProblemIdLessThanOrEqualTo(Integer value) {
            addCriterion("select_problem_id <=", value, "selectProblemId");
            return (Criteria) this;
        }

        public Criteria andSelectProblemIdIn(List<Integer> values) {
            addCriterion("select_problem_id in", values, "selectProblemId");
            return (Criteria) this;
        }

        public Criteria andSelectProblemIdNotIn(List<Integer> values) {
            addCriterion("select_problem_id not in", values, "selectProblemId");
            return (Criteria) this;
        }

        public Criteria andSelectProblemIdBetween(Integer value1, Integer value2) {
            addCriterion("select_problem_id between", value1, value2, "selectProblemId");
            return (Criteria) this;
        }

        public Criteria andSelectProblemIdNotBetween(Integer value1, Integer value2) {
            addCriterion("select_problem_id not between", value1, value2, "selectProblemId");
            return (Criteria) this;
        }

        public Criteria andSelectProblemTitleIsNull() {
            addCriterion("select_problem_title is null");
            return (Criteria) this;
        }

        public Criteria andSelectProblemTitleIsNotNull() {
            addCriterion("select_problem_title is not null");
            return (Criteria) this;
        }

        public Criteria andSelectProblemTitleEqualTo(String value) {
            addCriterion("select_problem_title =", value, "selectProblemTitle");
            return (Criteria) this;
        }

        public Criteria andSelectProblemTitleNotEqualTo(String value) {
            addCriterion("select_problem_title <>", value, "selectProblemTitle");
            return (Criteria) this;
        }

        public Criteria andSelectProblemTitleGreaterThan(String value) {
            addCriterion("select_problem_title >", value, "selectProblemTitle");
            return (Criteria) this;
        }

        public Criteria andSelectProblemTitleGreaterThanOrEqualTo(String value) {
            addCriterion("select_problem_title >=", value, "selectProblemTitle");
            return (Criteria) this;
        }

        public Criteria andSelectProblemTitleLessThan(String value) {
            addCriterion("select_problem_title <", value, "selectProblemTitle");
            return (Criteria) this;
        }

        public Criteria andSelectProblemTitleLessThanOrEqualTo(String value) {
            addCriterion("select_problem_title <=", value, "selectProblemTitle");
            return (Criteria) this;
        }

        public Criteria andSelectProblemTitleLike(String value) {
            addCriterion("select_problem_title like", value, "selectProblemTitle");
            return (Criteria) this;
        }

        public Criteria andSelectProblemTitleNotLike(String value) {
            addCriterion("select_problem_title not like", value, "selectProblemTitle");
            return (Criteria) this;
        }

        public Criteria andSelectProblemTitleIn(List<String> values) {
            addCriterion("select_problem_title in", values, "selectProblemTitle");
            return (Criteria) this;
        }

        public Criteria andSelectProblemTitleNotIn(List<String> values) {
            addCriterion("select_problem_title not in", values, "selectProblemTitle");
            return (Criteria) this;
        }

        public Criteria andSelectProblemTitleBetween(String value1, String value2) {
            addCriterion("select_problem_title between", value1, value2, "selectProblemTitle");
            return (Criteria) this;
        }

        public Criteria andSelectProblemTitleNotBetween(String value1, String value2) {
            addCriterion("select_problem_title not between", value1, value2, "selectProblemTitle");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption1IsNull() {
            addCriterion("select_problem_option1 is null");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption1IsNotNull() {
            addCriterion("select_problem_option1 is not null");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption1EqualTo(String value) {
            addCriterion("select_problem_option1 =", value, "selectProblemOption1");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption1NotEqualTo(String value) {
            addCriterion("select_problem_option1 <>", value, "selectProblemOption1");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption1GreaterThan(String value) {
            addCriterion("select_problem_option1 >", value, "selectProblemOption1");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption1GreaterThanOrEqualTo(String value) {
            addCriterion("select_problem_option1 >=", value, "selectProblemOption1");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption1LessThan(String value) {
            addCriterion("select_problem_option1 <", value, "selectProblemOption1");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption1LessThanOrEqualTo(String value) {
            addCriterion("select_problem_option1 <=", value, "selectProblemOption1");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption1Like(String value) {
            addCriterion("select_problem_option1 like", value, "selectProblemOption1");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption1NotLike(String value) {
            addCriterion("select_problem_option1 not like", value, "selectProblemOption1");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption1In(List<String> values) {
            addCriterion("select_problem_option1 in", values, "selectProblemOption1");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption1NotIn(List<String> values) {
            addCriterion("select_problem_option1 not in", values, "selectProblemOption1");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption1Between(String value1, String value2) {
            addCriterion("select_problem_option1 between", value1, value2, "selectProblemOption1");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption1NotBetween(String value1, String value2) {
            addCriterion("select_problem_option1 not between", value1, value2, "selectProblemOption1");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption2IsNull() {
            addCriterion("select_problem_option2 is null");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption2IsNotNull() {
            addCriterion("select_problem_option2 is not null");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption2EqualTo(String value) {
            addCriterion("select_problem_option2 =", value, "selectProblemOption2");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption2NotEqualTo(String value) {
            addCriterion("select_problem_option2 <>", value, "selectProblemOption2");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption2GreaterThan(String value) {
            addCriterion("select_problem_option2 >", value, "selectProblemOption2");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption2GreaterThanOrEqualTo(String value) {
            addCriterion("select_problem_option2 >=", value, "selectProblemOption2");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption2LessThan(String value) {
            addCriterion("select_problem_option2 <", value, "selectProblemOption2");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption2LessThanOrEqualTo(String value) {
            addCriterion("select_problem_option2 <=", value, "selectProblemOption2");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption2Like(String value) {
            addCriterion("select_problem_option2 like", value, "selectProblemOption2");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption2NotLike(String value) {
            addCriterion("select_problem_option2 not like", value, "selectProblemOption2");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption2In(List<String> values) {
            addCriterion("select_problem_option2 in", values, "selectProblemOption2");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption2NotIn(List<String> values) {
            addCriterion("select_problem_option2 not in", values, "selectProblemOption2");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption2Between(String value1, String value2) {
            addCriterion("select_problem_option2 between", value1, value2, "selectProblemOption2");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption2NotBetween(String value1, String value2) {
            addCriterion("select_problem_option2 not between", value1, value2, "selectProblemOption2");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption3IsNull() {
            addCriterion("select_problem_option3 is null");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption3IsNotNull() {
            addCriterion("select_problem_option3 is not null");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption3EqualTo(String value) {
            addCriterion("select_problem_option3 =", value, "selectProblemOption3");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption3NotEqualTo(String value) {
            addCriterion("select_problem_option3 <>", value, "selectProblemOption3");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption3GreaterThan(String value) {
            addCriterion("select_problem_option3 >", value, "selectProblemOption3");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption3GreaterThanOrEqualTo(String value) {
            addCriterion("select_problem_option3 >=", value, "selectProblemOption3");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption3LessThan(String value) {
            addCriterion("select_problem_option3 <", value, "selectProblemOption3");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption3LessThanOrEqualTo(String value) {
            addCriterion("select_problem_option3 <=", value, "selectProblemOption3");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption3Like(String value) {
            addCriterion("select_problem_option3 like", value, "selectProblemOption3");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption3NotLike(String value) {
            addCriterion("select_problem_option3 not like", value, "selectProblemOption3");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption3In(List<String> values) {
            addCriterion("select_problem_option3 in", values, "selectProblemOption3");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption3NotIn(List<String> values) {
            addCriterion("select_problem_option3 not in", values, "selectProblemOption3");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption3Between(String value1, String value2) {
            addCriterion("select_problem_option3 between", value1, value2, "selectProblemOption3");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption3NotBetween(String value1, String value2) {
            addCriterion("select_problem_option3 not between", value1, value2, "selectProblemOption3");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption4IsNull() {
            addCriterion("select_problem_option4 is null");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption4IsNotNull() {
            addCriterion("select_problem_option4 is not null");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption4EqualTo(String value) {
            addCriterion("select_problem_option4 =", value, "selectProblemOption4");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption4NotEqualTo(String value) {
            addCriterion("select_problem_option4 <>", value, "selectProblemOption4");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption4GreaterThan(String value) {
            addCriterion("select_problem_option4 >", value, "selectProblemOption4");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption4GreaterThanOrEqualTo(String value) {
            addCriterion("select_problem_option4 >=", value, "selectProblemOption4");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption4LessThan(String value) {
            addCriterion("select_problem_option4 <", value, "selectProblemOption4");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption4LessThanOrEqualTo(String value) {
            addCriterion("select_problem_option4 <=", value, "selectProblemOption4");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption4Like(String value) {
            addCriterion("select_problem_option4 like", value, "selectProblemOption4");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption4NotLike(String value) {
            addCriterion("select_problem_option4 not like", value, "selectProblemOption4");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption4In(List<String> values) {
            addCriterion("select_problem_option4 in", values, "selectProblemOption4");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption4NotIn(List<String> values) {
            addCriterion("select_problem_option4 not in", values, "selectProblemOption4");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption4Between(String value1, String value2) {
            addCriterion("select_problem_option4 between", value1, value2, "selectProblemOption4");
            return (Criteria) this;
        }

        public Criteria andSelectProblemOption4NotBetween(String value1, String value2) {
            addCriterion("select_problem_option4 not between", value1, value2, "selectProblemOption4");
            return (Criteria) this;
        }

        public Criteria andSelectProblemRightoptionIsNull() {
            addCriterion("select_problem_rightoption is null");
            return (Criteria) this;
        }

        public Criteria andSelectProblemRightoptionIsNotNull() {
            addCriterion("select_problem_rightoption is not null");
            return (Criteria) this;
        }

        public Criteria andSelectProblemRightoptionEqualTo(String value) {
            addCriterion("select_problem_rightoption =", value, "selectProblemRightoption");
            return (Criteria) this;
        }

        public Criteria andSelectProblemRightoptionNotEqualTo(String value) {
            addCriterion("select_problem_rightoption <>", value, "selectProblemRightoption");
            return (Criteria) this;
        }

        public Criteria andSelectProblemRightoptionGreaterThan(String value) {
            addCriterion("select_problem_rightoption >", value, "selectProblemRightoption");
            return (Criteria) this;
        }

        public Criteria andSelectProblemRightoptionGreaterThanOrEqualTo(String value) {
            addCriterion("select_problem_rightoption >=", value, "selectProblemRightoption");
            return (Criteria) this;
        }

        public Criteria andSelectProblemRightoptionLessThan(String value) {
            addCriterion("select_problem_rightoption <", value, "selectProblemRightoption");
            return (Criteria) this;
        }

        public Criteria andSelectProblemRightoptionLessThanOrEqualTo(String value) {
            addCriterion("select_problem_rightoption <=", value, "selectProblemRightoption");
            return (Criteria) this;
        }

        public Criteria andSelectProblemRightoptionLike(String value) {
            addCriterion("select_problem_rightoption like", value, "selectProblemRightoption");
            return (Criteria) this;
        }

        public Criteria andSelectProblemRightoptionNotLike(String value) {
            addCriterion("select_problem_rightoption not like", value, "selectProblemRightoption");
            return (Criteria) this;
        }

        public Criteria andSelectProblemRightoptionIn(List<String> values) {
            addCriterion("select_problem_rightoption in", values, "selectProblemRightoption");
            return (Criteria) this;
        }

        public Criteria andSelectProblemRightoptionNotIn(List<String> values) {
            addCriterion("select_problem_rightoption not in", values, "selectProblemRightoption");
            return (Criteria) this;
        }

        public Criteria andSelectProblemRightoptionBetween(String value1, String value2) {
            addCriterion("select_problem_rightoption between", value1, value2, "selectProblemRightoption");
            return (Criteria) this;
        }

        public Criteria andSelectProblemRightoptionNotBetween(String value1, String value2) {
            addCriterion("select_problem_rightoption not between", value1, value2, "selectProblemRightoption");
            return (Criteria) this;
        }

        public Criteria andProblemClassIdIsNull() {
            addCriterion("problem_class_id is null");
            return (Criteria) this;
        }

        public Criteria andProblemClassIdIsNotNull() {
            addCriterion("problem_class_id is not null");
            return (Criteria) this;
        }

        public Criteria andProblemClassIdEqualTo(Integer value) {
            addCriterion("select_problem.problem_class_id =", value, "problemClassId");
            return (Criteria) this;
        }

        public Criteria andProblemClassIdNotEqualTo(Integer value) {
            addCriterion("select_problem.problem_class_id <>", value, "problemClassId");
            return (Criteria) this;
        }

        public Criteria andProblemClassIdGreaterThan(Integer value) {
            addCriterion("select_problem.problem_class_id >", value, "problemClassId");
            return (Criteria) this;
        }

        public Criteria andProblemClassIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("select_problem.problem_class_id >=", value, "problemClassId");
            return (Criteria) this;
        }

        public Criteria andProblemClassIdLessThan(Integer value) {
            addCriterion("select_problem.problem_class_id <", value, "problemClassId");
            return (Criteria) this;
        }

        public Criteria andProblemClassIdLessThanOrEqualTo(Integer value) {
            addCriterion("problem_class_id <=", value, "problemClassId");
            return (Criteria) this;
        }

        public Criteria andProblemClassIdIn(List<Integer> values) {
            addCriterion("problem_class_id in", values, "problemClassId");
            return (Criteria) this;
        }

        public Criteria andProblemClassIdNotIn(List<Integer> values) {
            addCriterion("problem_class_id not in", values, "problemClassId");
            return (Criteria) this;
        }

        public Criteria andProblemClassIdBetween(Integer value1, Integer value2) {
            addCriterion("problem_class_id between", value1, value2, "problemClassId");
            return (Criteria) this;
        }

        public Criteria andProblemClassIdNotBetween(Integer value1, Integer value2) {
            addCriterion("problem_class_id not between", value1, value2, "problemClassId");
            return (Criteria) this;
        }

        public Criteria andSelectProblemStatueIsNull() {
            addCriterion("select_problem_statue is null");
            return (Criteria) this;
        }

        public Criteria andSelectProblemStatueIsNotNull() {
            addCriterion("select_problem_statue is not null");
            return (Criteria) this;
        }

        public Criteria andSelectProblemStatueEqualTo(Integer value) {
            addCriterion("select_problem_statue =", value, "selectProblemStatue");
            return (Criteria) this;
        }

        public Criteria andSelectProblemStatueNotEqualTo(Integer value) {
            addCriterion("select_problem_statue <>", value, "selectProblemStatue");
            return (Criteria) this;
        }

        public Criteria andSelectProblemStatueGreaterThan(Integer value) {
            addCriterion("select_problem_statue >", value, "selectProblemStatue");
            return (Criteria) this;
        }

        public Criteria andSelectProblemStatueGreaterThanOrEqualTo(Integer value) {
            addCriterion("select_problem_statue >=", value, "selectProblemStatue");
            return (Criteria) this;
        }

        public Criteria andSelectProblemStatueLessThan(Integer value) {
            addCriterion("select_problem_statue <", value, "selectProblemStatue");
            return (Criteria) this;
        }

        public Criteria andSelectProblemStatueLessThanOrEqualTo(Integer value) {
            addCriterion("select_problem_statue <=", value, "selectProblemStatue");
            return (Criteria) this;
        }

        public Criteria andSelectProblemStatueIn(List<Integer> values) {
            addCriterion("select_problem_statue in", values, "selectProblemStatue");
            return (Criteria) this;
        }

        public Criteria andSelectProblemStatueNotIn(List<Integer> values) {
            addCriterion("select_problem_statue not in", values, "selectProblemStatue");
            return (Criteria) this;
        }

        public Criteria andSelectProblemStatueBetween(Integer value1, Integer value2) {
            addCriterion("select_problem_statue between", value1, value2, "selectProblemStatue");
            return (Criteria) this;
        }

        public Criteria andSelectProblemStatueNotBetween(Integer value1, Integer value2) {
            addCriterion("select_problem_statue not between", value1, value2, "selectProblemStatue");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}